﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wicresoft.EKA.ITSM.Web.WebPortal.Extension
{
    public class EVMHttpModule : IHttpModule
    {
        public void Dispose()
        {
            
        }

        public void Init(HttpApplication context)
        {
            context.EndRequest += new EventHandler(EndRequestOperation);
        }

        private void EndRequestOperation(object sender, EventArgs e)
        {
            if (HttpContext.Current.Response.StatusCode == 403) HttpContext.Current.Response.Redirect("~/Info/NoPermission.html");
        }
    }
}